const { DataTypes } = require('sequelize');
const { sequelize } = require('../config/db');


const Image = sequelize.define('Image', {
  filename: {
    type: DataTypes.STRING,
    allowNull: false
  },
  path: {
    type: DataTypes.STRING,
    allowNull: false
  },
  mimetype: {
    type: DataTypes.STRING
  },
  size: {
    type: DataTypes.INTEGER
  }
}, {
  tableName: 'images'
});

module.exports = Image;